package com.b.service.impl;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import com.b.domain.FavoriteVideo;
import com.b.dao.FavoriteVideoMapper;
import com.b.service.FavoriteVideoService;

import java.util.List;

@Service
public class FavoriteVideoServiceImpl implements FavoriteVideoService{

    @Resource
    private FavoriteVideoMapper favoriteVideoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return favoriteVideoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FavoriteVideo record) {
        return favoriteVideoMapper.insert(record);
    }

    @Override
    public int insertSelective(FavoriteVideo record) {
        return favoriteVideoMapper.insertSelective(record);
    }

    @Override
    public FavoriteVideo selectByPrimaryKey(Integer id) {
        return favoriteVideoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FavoriteVideo record) {
        return favoriteVideoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FavoriteVideo record) {
        return favoriteVideoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<FavoriteVideo> getAll() {
        return favoriteVideoMapper.getAll();
    }

}
